import { GET, POST } from "@/api";
import { config } from "@/config";
import { VagueOject } from "@/types/common";
import { NoticeType } from "@/types/response/home";

export const notice = async (data: VagueOject = {}, header: VagueOject = {}): Promise<NoticeType[]> => {
    return await POST<NoticeType[]>({
        url: config.apiList.notice,
        data,
        header
    })
}